-- GENERATED SPELL FOR [Silverbrook Hunter] --


function spell0_27546(pUnit, Event) --@Improved Wing Clip,n/a--
pUnit:FullCastSpellOnTarget(47168,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_27546', 6346, 1)
end

function spell1_27546(pUnit, Event) --@Shoot,n/a--
pUnit:FullCastSpellOnTarget(6660,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_27546', 600, 1)
end

function Sorts_27546(pUnit, Event)
local choix_sorts_27546 = math.random(0, 1)
if choix_sorts_27546 == 0 then
pUnit:RegisterEvent('spell0_27546', 1, 1)
end
if choix_sorts_27546 == 1 then
pUnit:RegisterEvent('spell1_27546', 1, 1)
end
end

function mob27546_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_27546', math.random(1500, 3000), 1)
end

function mob27546_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob27546_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob27546_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(27546, 1, 'mob27546_Action')
RegisterUnitEvent(27546, 2, 'mob27546_Leave')
RegisterUnitEvent(27546, 3, 'mob27546_Kill')
RegisterUnitEvent(27546, 4, 'mob27546_Die')
